package ylsb.dao;

import org.apache.ibatis.annotations.Param;
import ylsb.model.YltpJieguo;
import ylsb.model.YltpJieguoExample;

import java.util.List;
import java.util.Map;

public interface YltpJieguoMapper {

    Object getChuangxinchanpinResultCount(@Param("xiangmuid") String mmxiangmuId,@Param("userid") String mmuserId,@Param("result") String mmresult);

    Object getBaofeiResultCount(@Param("xiangmuid") String mmxiangmuId,
                          @Param("userid") String mmuserId,
                          @Param("result") String mmresult);

    Object getYinjinResultCount(@Param("xiangmuid") String mmxiangmuId,
                                @Param("userid") String mmuserId,
                                @Param("result") String mmresult);

    Object getShebeiResultCount(@Param("xiangmuid") String mmxiangmuId,
                                @Param("userid") String mmuserId,
                                @Param("result") String mmresult);

    Object getResultCount(@Param("xiangmuid") String mmxiangmuId,
                          @Param("tablename") String tablename,
                                @Param("userid") String mmuserId,
                                @Param("result") String mmresult,
                          @Param("fromtablename") String fromtablename);

    Object getHaocaiduibiaoResultCount(@Param("xiangmuid") String mmxiangmuId,
                                @Param("userid") String mmuserId,
                                @Param("result") String mmresult);

    Object getZhuankeyinjinResultCount(@Param("xiangmuid") String mmxiangmuId,
                                @Param("userid") String mmuserId,
                                @Param("result") String mmresult);

    int countByExample(YltpJieguoExample example);

    int deleteByExample(YltpJieguoExample example);

    int deleteByPrimaryKey(String id);

    int insert(YltpJieguo record);
    int insertBatch(List<YltpJieguo> yltpJieguo);

    int insertSelective(YltpJieguo record);

    List<YltpJieguo> selectByExample(YltpJieguoExample example);

    YltpJieguo selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") YltpJieguo record, @Param("example") YltpJieguoExample example);

    int updateByExample(@Param("record") YltpJieguo record, @Param("example") YltpJieguoExample example);

    int updateByPrimaryKeySelective(YltpJieguo record);

    int updateByPrimaryKey(YltpJieguo record);
    int updateBatch(List<YltpJieguo> yltpJieguo);

    List<Map<String, Object>> findBiaojuelist(@Param("xiangmuid") String mmxiangmuId,@Param("tablename") String tablename,@Param("userid") String mmuserId);

    Integer getVoteCount(@Param("xiangmuid") String ppxiangmuId,@Param("tablename") String tablename);

    List<Map<String, Object>> findlist(@Param("xiangmuid") String mmxiangmuId,@Param("tablename") String tablename);
}